const TokenKey = 'bmxt-web-master-token'
const shoppingKey = 'shopping-token'

export function getToken() {
  return localStorage.getItem(TokenKey)
}

export function setToken(token,express) {
  return localStorage.setItem(TokenKey, token)
}

export function removeToken() {
  return localStorage.removeItem(TokenKey)
}

// 设置商城存储
export function setShoppingToken(shoppingData) {
  return this.setDataToLocalStorage(shoppingKey,shoppingData)
}

export function getShoppingToken() {
  return this.getDataFromLocalStorage(shoppingKey)
}

export function removeShoppingToken() {
  return localStorage.removeItem(shoppingKey);
}
